Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backticks to the gramar #20

Merged
merged 5 commits into from
Apr 23, 2020
Merged

Add backticks to the gramar #20

merged 5 commits into from
Apr 23, 2020

Conversation

rw-access
Copy link
Contributor

Issues

Relates to #15
Closes #19

Details

Fairly straightforward. Added `backtick` support to the grammar and parser.
Validated that the engine is still working as expected.

@rw-access rw-access added enhancement New feature or request compatibility labels Apr 17, 2020
@rw-access rw-access changed the base branch from master to feature/backport April 17, 2020 22:41
Copy link
Contributor

@brokensound77 brokensound77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the one comment

👍

eql/etc/eql.g Outdated Show resolved Hide resolved
Copy link

@aleksmaus aleksmaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment for the test, otherwise LGTM

parse_to("`foo.bar.baz`", ["foo.bar.baz"])
parse_to("`foo`.`bar-baz`", ["foo", "bar-baz"])
parse_to("`foo`.`bar-baz`", ["foo", "bar-baz"])
parse_to("`💩`", ["💩"])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💩

parse_to("`foo bar baz`", ["foo bar baz"])
parse_to("`foo.bar.baz`", ["foo.bar.baz"])
parse_to("`foo`.`bar-baz`", ["foo", "bar-baz"])
parse_to("`foo`.`bar-baz`", ["foo", "bar-baz"])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two lines above are the same. did you mean something else for the second one?

@rw-access rw-access merged commit 3ae114c into feature/backport Apr 23, 2020
@rw-access rw-access deleted the backticks branch April 23, 2020 18:49
rw-access added a commit that referenced this pull request May 18, 2020
* Add backtick support and tests
* Add engine tests for backtick
* Add note to changelog
* Add additional backtick test
* Unduplicate backtick test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add backtick handling for field names and attributes
3 participants